[XEND] Make sure UUID in state store are not stored as unicode
authorAlastair Tse <atse@xensource.com>
Wed, 24 Jan 2007 13:58:06 +0000 (13:58 +0000)
committerAlastair Tse <atse@xensource.com>
Wed, 24 Jan 2007 13:58:06 +0000 (13:58 +0000)
objects.

Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendStateStore.py

index 8be634058f9f668deff79eba80064c7fab287a0a..7776415ee3a21e18e526f7089fdee27c7260bc2d 100644 (file)
@@ -107,7 +107,7 @@ class XendStateStore:
             if child.nodeType != Node.ELEMENT_NODE:
                 continue # skip non element nodes
                 
-            uuid = child.getAttribute('uuid')
+            uuid = child.getAttribute('uuid').encode('utf8')
             cls_dict = {}
             for val_elem in child.childNodes:
                 if val_elem.nodeType != Node.ELEMENT_NODE: